/*
* @Author: tonyzz
* @Date:   2017-11-20 17:04:17
* @Last Modified by:   tonyzz
* @Last Modified time: 2017-11-20 17:30:06
*/
'use strict'
var  _mm = require('util/mm.js');
 
var _user = {
    // 检查登录状态
    checkLogin : function(resolve,reject){
        _mm.request({
            url : _mm.getServerUrl('/user/get_user_info.do'),
            method : 'POST',
            success : resolve,
            error : reject
        });
    },
    //登出
    logout : function(resolve, reject){
        _mm.request({
            url : _mm.getServerUrl('/user/logout.do'),
            method : 'POST',
            success : resolve,
            error : reject
        });
    }
};
module.exports = _user;